package org.wx.io.netty.rpc.intface;

/**
 * @description:
 * @author: wangxun
 * @createDate: 2021/2/23
 * @version: 1.0
 */
public class MyCar implements Car{
    @Override
    public String come(int distance, double money) {
        if(distance>3*1000){
            return "no";
        }
        return "yes";
    }

    @Override
    public String go(double money) {
        if(money>0){
            return "go go go";
        }

        return "not go";
    }
}
